package com.task.mall.dao;

import com.task.mall.bean.*;

import java.util.List;

public interface OrderDao {

    Integer queryTotalCount(String s, List<Object> params);

    List<Order> queryPageOrders(String s, List<Object> param);

    User queryUserInfo(Integer userId);

    int deleteOrder(String id);

    OrderDetails queryOrderInfo(String id);

    List<Spec> queryGoodSpec(int id);

    List<States> queryAllStates();

    int getSpecId(String specName);

    Order queryOrder(String id);

    int changeOrder(Order order);

    List<OrderByState> getOrderByState(Integer userId, String state);

    Goods queryGoodsInfo(Integer goodsDetailId);

    int addOrder(AddOrder order, User user, Goods goods, Spec spec);

    User getUserInfo(String nickName);

    Spec getSpecInfo(Integer goodsId);

    Goods getGoodsInfo(Integer goodsId);

    int userDeleteOrder(String id);

    int confirmReceive(String id);

    int pay(String id);

    void sendComment(Comment comment, Integer userId, String specName);

    Spec getSpecInfoByGDD(Integer goodsDetailId);

    void settleAccounts(Integer id);
}
